﻿using System;
using System.Collections.ObjectModel;

using Sunyi.Project.WebPoint.DataContract;

namespace Sunyi.Project.WebPoint.DataAccessController
{
    public partial class LogDaoController
    {
        public int SearchCount(string level, string source, string category, string eventId, DateTime insertTimestamp)
        {
            return dao.SearchCount(level, source, category, eventId, insertTimestamp);
        }

        public Collection<Log> Search(string level, string source, string category, string eventId, DateTime insertTimestamp, int pageIndex, int pageSize)
        {
            return dao.Search(level, source, category, eventId, insertTimestamp, pageIndex, pageSize);
        }

        public void DeleteAll()
        {
            dao.DeleteAll();
        }
    }
}
